﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BYS.XiAnComDept.BussLogic
{
    public static class StringExtension
    {
        public static string JoinWith(this string my, string part, string seperator)
        {
            if (string.IsNullOrEmpty(my))
            {
                if (!string.IsNullOrEmpty(part))
                {
                    my = part;
                }
            }
            else
            {
                if (!string.IsNullOrEmpty(part))
                {
                    my = my + seperator + part;
                }
            }
            return my;
        }
    }
}
